//导入工具类
import request from "@/utils/request";

//查询所有笔记
export const getAllUsers = () =>{
    return request.get("/note");
}

//查询所有笔记
export const getAllUser = (pageNum,pageSize) =>{
    let page = {
        pageNum:pageNum,
        pageSize:pageSize
    }
    return request.get("/note/page",page);
}

//根据id查询题目
export const getTopic = (id) =>{
    return request.get(`/choosetopic/${id}`);
}
//根据id查询用户
export const getUser = (id) =>{
    return request.get(`/user/${id}`);
}